<template>
  <div class="markdown">
    <h1>This is an Markdown page</h1>

    <mavon-editor v-model="md_value" ref='editor' codeStyle='vs2015'  />

    <el-button type='success'>提交</el-button>
  </div>
</template>

<script>
export default {
  created(){
    console.log(this)
  },
  data(){
    return {
      md_value:''
    }
  },
  computed:{
    md_render(){
      return this.$refs.editor.d_render;
    }
  },
  methods:{
    submit(){
      this.axios.post();
    }
  }
}
</script>

